package com.zhuss.intention.db.dao.ext;

import com.zhuss.intention.db.entity.PersonalIntention;
import com.zhuss.bean.bo.intention.intention.SearchPersonalIntentionBo;
import com.zhuss.bean.vo.intention.intention.ListPersonalIntentionVo;
import com.zhuss.bean.vo.intention.intention.DetailPersonalIntentionVo;
import java.util.List;
import org.apache.ibatis.annotations.*;
import com.zhuss.intention.db.dao.gen.*;

/**
 * @description: 个人需求数据库Dao
 * @author: zhushanshuo
 * @create: Fri Dec 25 09:39:45 CST 2020
 **/

@Mapper
public interface PersonalIntentionDao extends PersonalIntentionMapper {
	
	void create(PersonalIntention record);
	
	void delete(PersonalIntention record);

	List<PersonalIntention> listAll();

	List<PersonalIntention> listById(@Param("personalIntentionIdList") List<Long> personalIntentionIdList);
	
	List<PersonalIntention> listByName(@Param("name") String name);
	
	List<ListPersonalIntentionVo> list(SearchPersonalIntentionBo bo);
	
	Integer countList(SearchPersonalIntentionBo bo);

	DetailPersonalIntentionVo detail(@Param("personalIntentionId") Long personalIntentionId);

}
